package com.igeekhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
/**
 * @author Romeo
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class WWaybill {
    private Integer waybillId;

    private Integer sendingId;

    private Integer destinationId;

    private Integer takerId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date sendTime;

    private Integer expressTypeId;

    private Integer transportMethodId;

    private Integer agentWaybillNumber;

    private Integer vipId;

    private String senderName;

    private String senderPhonenumber;

    private String senderIdcard;

    private String senderPost;

    private String detailedAddress;

    private String recipient;

    private String recipientPostcode;

    private String recipientDetailedAddress;

    private String itemName;

    private Integer number;

    private BigDecimal weight;

    private BigDecimal volume;

    private String remarks;

    private Integer paymentMethodId;

    private BigDecimal insuranceCharge;

    private BigDecimal serviceCharge;

    private BigDecimal otherCharge;

    private BigDecimal collectionOnDelivery;

    private BigDecimal freight;

    private BigDecimal totalMoney;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    private Integer status;

    private Integer networkId;

    private Integer transportNetworkId;

    private String recipientPhonenumber;

    private String recipientIdcard;

    private String recipientCompany;

    private Integer itemTypeId;

    private String url;

    private Integer destId;

    private String fileName;

    private String barcode;

   }